package com.itheima.d16_extengds_constructor2;

public class Teacher extends People{
    private String skill;

    public Teacher(String name, int age, String skill) {//子类的有参构造器
        super(name,age);//这个位置是重点，记得反复看
        this.skill = skill;
    }
    public Teacher(){

    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }
}
